package com.ruoyi.app.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;

import javax.validation.constraints.*;

import java.util.Date;

/**
 * 邀请管理业务对象
 *
 * @author Zach
 * @date 2023-11-14
 */

@Data
public class AppShareBo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 邀请码
     */
    @NotBlank(message = "邀请码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 失效时间
     */
    @NotNull(message = "失效时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date failureTime;

    /**
     * 状态 启用禁用
     */
    @NotNull(message = "状态 启用禁用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;


}
